import { createWebHashHistory, createRouter } from 'vue-router'

const routes = [
    {
        // 聊天界面
        path: '/',
        name: "home",
        component: () => import('@/page/home/home.vue')
    },
    {
        // 商品详情页
        path: '/goodDetails',
        name: "goodDetails",
        component: () => import('@/page/goodDetails/index.vue')
    },
    {
        // 意见反馈页面
        path: '/complaintPage',
        name: "complaintPage",
        component: () => import('@/page/complaintPage/index.vue')
    },
]

// 创建路由
const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

// 导出路由
export default router
